<?php
include('include/config.inc.php');
if(!isset($_SESSION['s_activId'.$cfgPack])
  || (isset($_SESSION['s_userType'.$cfgPack]) && isset($cfgFileNames['technician'][$_SESSION['s_userType'.$cfgPack]]) 
      && $cfgFileNames['technician'][$_SESSION['s_userType'.$cfgPack]] == 0))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{
  $technicianArr = array();
  $selectTechni = "SELECT DISTINCT techallocation.technicianId,technician.firstName,technician.lastName
                     FROM techallocation
                     JOIN technician ON technician.technicianId = techallocation.technicianId";
  $techRes = mysql_query($selectTechni) ;
  $a = 0;
  while($techRow = mysql_fetch_array($techRes))
  {
    $technicianArr['technicianId'][$a] = $techRow['technicianId'];
    $technicianArr['name'][$a] = $techRow['firstName']." ".$techRow['lastName'];
    $a++;
  }
	include("./bottom.php");
	$smarty->assign("technicianArr",$technicianArr);
  $smarty->display("siteReg.tpl");
}
?>